import React, { Component } from 'react';
import { Provider } from 'react-redux'
import store from './store'
import './App.css';
import { GlobalStyle  } from './style';
import { Iconfont  } from './statics/iconfont/iconfont.js';
import Header from '../src/conmen/Header'
import { BrowserRouter, Route} from 'react-router-dom'
import Home from './pages/Home'
import Detail from './pages/Detail'
class App extends Component {
  render() {
    return (
      <Provider store={store}>
        <div>
          <GlobalStyle/>
          <Iconfont/>
          <BrowserRouter>
            <div>
              <Header />
              <Route path="/" exact component={Home}></Route>
              <Route path="/detail" exact component={Detail}></Route>
            </div>
          </BrowserRouter>
        </div>
      </Provider>
    );
  }
}

export default App;
